import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ValidationPipe } from '@nestjs/common';
async function bootstrap() {
  const app = await NestFactory.create(AppModule); 
  
  app.enableCors({
    origin: 'http://localhost:5173',
    methods: 'GET,POST',
    allowedHeaders: 'Authorization, Content-Type'
  });
  app.useGlobalPipes(new ValidationPipe());
  await app.listen(3000);
}
bootstrap();